<script setup lang="ts">
defineProps<{
  placeholder: string
}>()
</script>

<template>
  <div class="input-container">
    <textarea 
      class="input-area" 
      :placeholder="placeholder"
    ></textarea>
    <div class="input-tools">
      <button class="tool-btn">
        <span class="icon">📎</span>
      </button>
      <button class="tool-btn">
        <span class="icon">🔍</span>
      </button>
      <button class="tool-btn">
        <span class="icon">⬇️</span>
      </button>
    </div>
  </div>
</template>

<style scoped>
.input-container {
  width: 100%;
  position: relative;
}

.input-area {
  width: 100%;
  height: 80px;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  font-family: inherit;
}

.input-tools {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 0.5rem;
}

.tool-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.tool-btn:hover {
  opacity: 1;
}
</style> 